package com.loc;

import android.net.wifi.WifiInfo;
import android.text.TextUtils;

/* compiled from: WifiInfoWrapper.java */
/* loaded from: classes2.dex */
public final class fg {
    private WifiInfo a;
    private String b;
    private String c;
    private int d = -1;

    public fg(WifiInfo wifiInfo) {
        this.a = wifiInfo;
    }

    public final String a() {
        if (this.c == null) {
            this.c = fe.a(this.a);
        }
        return this.c;
    }

    public final String b() {
        if (this.b == null) {
            this.b = fe.b(this.a);
        }
        return this.b;
    }

    public final int c() {
        if (this.d == -1) {
            this.d = fe.c(this.a);
        }
        return this.d;
    }

    public final boolean d() {
        return (this.a == null || TextUtils.isEmpty(b()) || !gb.a(a())) ? false : true;
    }
}
